package thread;

public class demo5 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            for (int i = 0; i <5; i++) {
                System.out.println("wwwwwwwww");
            }
        });
        System.out.println(String.valueOf(t.getState()));
        //start之前的线程状态为NEW
        t.start();
        System.out.println(String.valueOf(t.getState()));
        //start之后的线程状态是RUNNABLE
        System.out.println("main退出");

    }
}
